<?php
// error_reporting(0);
?>

<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title><?php echo $home["title"]; ?> | 收录仓库 </title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="<?php echo $home["description"]; ?>" name="description">
    <meta content="<?php echo $home["keywords"]; ?>" name="keywords"><!-- App favicon -->
    <link rel="shortcut icon" href="assets/images/favicon.ico"><!-- jvectormap -->
    <link href="assets/css/jqvmap.min.css" rel="stylesheet"><!-- Bootstrap Css -->
    <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css"><!-- Icons Css -->
    <link href="assets/css/icons.min.css" rel="stylesheet" type="text/css"><!-- App Css-->
    <link href="assets/css/app.min.css" rel="stylesheet" type="text/css">
    <link href="../assets/css/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css">
    <link href="../assets/css/buttons.bootstrap4.min.css" rel="stylesheet" type="text/css">
    <link href="../assets/css/responsive.bootstrap4.min.css" rel="stylesheet" type="text/css">
    <link href="../assets/css/sweetalert2.min.css" rel="stylesheet" type="text/css">
      <style>
            @font-face {
    font-family: 'YourFontName'; /* 字体名称，可以自定义 */
    src: url('assets/1.ttf') format('truetype'); /* 字体文件的路径 */
    font-weight: normal; /* 字体粗细，可以根据需要调整 */
    font-style: normal; /* 字体样式，可以根据需要调整 */
}
body {

	/*overflow: hidden;*/
	font-family:"YourFontName";

}
       @media screen and (max-width: 767px) {
    .footer {
        position: fixed;
        bottom: 0;
        width: 100%;
        
    }
}
       .card {
        border: 1px solid #eaeaea;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .auth-logo {
        max-width: 100%;
        height: auto;
    }

    .weather-widget {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .modal-body {
        max-height: 300px;
        overflow-y: auto;
    }

    /* Custom Buttons */
    .custom-btn {
        /* Add your custom button styles here */
    }

    /* Input Styles */
    .form-control-lg {
        border-radius: 5px;
    }

    /* Responsive Margin */
    @media (max-width: 576px) {
        .mt-sm-4 {
            margin-top: 4rem !important;
        }
    }
        .topnav {
            background: linear-gradient(to right, #ff8a00, #e52e71); /* 渐变颜色 */
            color: white; /* 文字颜色，根据需要调整 */
            padding: 5px 0; /* 上下内边距，根据需要调整 */
        }

        .navbar-nav .nav-link {
            color: white !important; /* 导航链接文字颜色，根据需要调整 */
        }

        .navbar-nav .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.2); /* 鼠标悬停时的背景色，根据需要调整 */
        }
        .custom-btn {
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 阴影 */
    padding: 10px 24px; /* 上下左右内边距，根据需要调整 */
    font-size: 18px; /* 字体大小，根据需要调整 */
    /* 添加其他样式，根据需要调整 */
}
.custom-card {
    border: 2px solid white; /* 白色边框 */
    background-color: rgba(255, 255, 255, 0.1); /* 透明背景色，可以根据需要调整透明度 */
    padding: 20px; /* 根据需要调整内边距 */
    border-radius: 10px; /* 圆角，根据需要调整 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* 阴影，可以根据需要调整 */
}
/* Add these styles to your existing CSS file */
.logo-image {
    max-height: 50px; /* Set your desired max height */
    width: auto;
}
    @media (max-width: 767px) {
        .footer {
            text-align: center;
        }
        .footer .row {
            flex-direction: column;
            align-items: center;
        }
        .footer .col-sm-6 {
            margin-bottom: 15px;
        }
    }

    </style>
</head>

<body data-topbar="light" data-layout="horizontal" data-layout-size="boxed">
    <!-- Begin page -->
    <div id="layout-wrapper">
      <header id="page-topbar">
    <div class="navbar-header">
        <div class="d-flex">
            <!-- LOGO -->
            <div style="margin-left:10px" class="text-center">
                <a href="index.php" class="logo logo-dark">
                    <img src="<?php echo $home["logo"]; ?>" alt="logo-dark" class="logo-image">
                </a>
            </div>
            <button type="button" class="btn btn-sm px-3 font-size-24 d-lg-none header-item" data-bs-toggle="collapse" data-bs-target="#topnav-menu-content">
                <i class="ri-menu-2-line align-middle"></i>
            </button>
        </div>
    </div>
</header>
        <div class="topnav">
            <div class="container-fluid">
                <nav class="navbar navbar-light navbar-expand-lg topnav-menu">
                    <div class="collapse navbar-collapse" id="topnav-menu-content">
                        <ul class="navbar-nav">
                            <li class="nav-item"><a class="nav-link" href="?mod=index"><i class="ri-search-2-line me-2"></i>查询主页 </a></li>
                            <li class="nav-item"><a class="nav-link" href="?mod=jubao"><i class="dripicons-arrow-thin-up   me-2"></i>在线举报 </a></li>
                            <li class="nav-item"><a class="nav-link" href="?mod=bank"><i class="dripicons-cloud  me-2"></i>收录仓库 </a></li>
                            <li class="nav-item"><a class="nav-link" href="?mod=login"><i class="ri-user-add-line  me-2"></i>成员登录 </a></li>
                                <li class="nav-item"><a class="nav-link" href="?mod=youlian"><i class=" ri-rocket-fill  me-2"></i>本站友链 </a></li>
                            <?php 
                            if($login==1){
                                echo '     <li class="nav-item"><a class="nav-link" href="?mod=logout"><i class="ri-shut-down-line  me-2"></i>退出登录 </a></li>';
                            }
                            ?>
                        </ul>
                    </div>
                </nav>
            </div>
        </div><!-- ============================================================== -->
        <!-- Start right Content here -->
        <!-- ============================================================== -->
        <div class="main-content">
            <div class="page-content">
                <div class="container-fluid">
                    <!-- start page title -->

                    <div class="row">
                        <div class="col-md-9 mx-auto">
                        
                        <div class="card border border-danger">
                            <div class="card-header bg-transparent border-success">
                                <h5 class="my-0 text-danger"><i class=" mdi mdi-widgets"></i><?php echo $typename; ?>收录仓库</h5>
                            </div>
                            <div class="card-body">
                                <div class="pe-3" data-simplebar="init" style="max-height: 226px;">
                                    <div class="simplebar-wrapper" style="margin: 0px -16px 0px 0px;">
                                        <div class="simplebar-height-auto-observer-wrapper">
                                            <div class="simplebar-height-auto-observer"></div>
                                        </div>
                                        <div class="simplebar-mask">
                                            <div class="simplebar-offset" style="right: -16.8px; bottom: 0px;">
                                                <div class="simplebar-content-wrapper" style="height: auto; overflow: hidden scroll;">
                                                    <div class="simplebar-content  d-grid" style="padding: 0px 16px 0px 0px;">
                                                       <?php
                                                       echo $sldata;
                                                       ?>
   
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="simplebar-placeholder" style="width: auto; height: 369px;"></div>
                                    </div>
                                    <div class="simplebar-track simplebar-horizontal" style="visibility: hidden;">
                                        <div class="simplebar-scrollbar" style="transform: translate3d(0px, 0px, 0px); display: none;">
                                        </div>
                                    </div>
                                    <div class="simplebar-track simplebar-vertical" style="visibility: visible;">
                                        <div class="simplebar-scrollbar" style="height: 223px; transform: translate3d(0px, 0px, 0px); display: block;"></div>
                                    </div>
                                </div>
                            </div><!-- end card-body -->
                        </div><!-- end card -->
         

                        </div>
                    </div>
                </div>


            </div>
        </div><!-- end row -->
    </div>
    </div><!-- container-fluid -->
    </div><!-- End Page-content -->
<footer class="footer">
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-6">
                <?php echo $home["footer"]; ?>
            </div>
            <div class="col-sm-6 text-end">
                <span style="white-space: nowrap;">
                    &copy; <?php echo date("Y"); ?> Copyright by AiryCloud. All rights reserved.
                </span>
            </div>
        </div>
    </div>
</footer>
    </div>
    </div><!-- END layout-wrapper -->
    <!-- Right Sidebar -->
    <!-- Right bar overlay-->
    <div class="rightbar-overlay"></div><!-- JAVASCRIPT -->
    <script src="assets/js/jquery.min.js"></script>
    <script src="assets/js/bootstrap.bundle.min.js"></script>
    <script src="assets/js/metisMenu.min.js"></script>
    <script src="assets/js/simplebar.min.js"></script>
    <script src="assets/js/waves.min.js"></script><!-- apexcharts js -->
    <script src="assets/js/apexcharts.min.js"></script><!-- jquery.vectormap map -->
    <script src="assets/js/jquery.vmap.min.js"></script>
    <script src="assets/js/jquery.vmap.usa.js"></script>
    <script src="assets/js/dashboard.init.js"></script>
    <script src="assets/js/app.js"></script>
    <script src="../assets/js/sweetalert2.min.js"></script>
    <script type="text/javascript" src="assets/js/webuploader.min.js"></script>
    <style>
    </style>
    <script>
       window.addEventListener("scroll", function() {
        // 获取文档高度
        var documentHeight = document.documentElement.scrollHeight || document.body.scrollHeight;

        // 获取当前窗口高度
        var windowHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;

        // 获取滚动条位置
        var scrollPosition = window.scrollY || window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;

        // 判断是否滚动到底部
        if (scrollPosition + windowHeight >= documentHeight) {
            // 显示尾部导航条
            document.querySelector(".footer").style.display = "block";
        } else {
            // 隐藏尾部导航条
            document.querySelector(".footer").style.display = "none";
        }
    });
      function zsy(id){
            $.ajax({
            type: "POST",
            url: "ajax.php?act=sczsy",
            data: {
                id:id
            },
            dataType: "json",
            success: function(data) {
                if (data.state == 1) {
              window.location.href='./page/'+data.name;
                } else {

                }

            },
            error: function(data) {}
        });
        }
    </script>
</body>

</html>